package tech.dongling.boot.example;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import tech.dongling.boot.anno.Component;

// 示例业务实现
@Component("userService")
public class UserService {
    private static final Logger logger = LoggerFactory.getLogger(UserService.class);
    
    public String getUserName(int id) {
        logger.debug("Getting user name for id: {}", id);
        String userName = "User_" + id;
        logger.debug("Returning user name: {}", userName);
        return userName;
    }
}
